namespace Winner.Game.Entity.POCOModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("UserInfo")]
    public partial class UserInfo
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public UserInfo()
        {
            OrderInfo = new HashSet<OrderInfo>();
        }

        public int ID { get; set; }

        public int UserID { get; set; }

        [Required]
        [StringLength(16)]
        public string UserName { get; set; }

        [Required]
        [StringLength(32)]
        public string LoginName { get; set; }

        [Required]
        [StringLength(16)]
        public string UserPassword { get; set; }

        public int UserSex { get; set; }

        [Required]
        [StringLength(16)]
        public string UserPhone { get; set; }

        [Required]
        [StringLength(32)]
        public string UserEmail { get; set; }

        public int UserLevel { get; set; }

        public int UserPoint { get; set; }

        public int UserState { get; set; }

        public DateTime UserCreateTime { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<OrderInfo> OrderInfo { get; set; }

        public virtual UserLevel UserLevel1 { get; set; }
    }
}
